package com.yh.service;

import com.yh.dao.SelectDao;
import com.yh.dao.impl.HouseTypeimpl;
import com.yh.dao.impl.Streetimpl;
import com.yh.dao.impl.Townimpl;
import com.yh.model.HouseTypeModel;
import com.yh.model.StreetModel;
import com.yh.model.TownModel;

import java.util.List;

public class SelectService {
    private SelectDao<HouseTypeModel> type = new HouseTypeimpl();
    private SelectDao<TownModel> town = new Townimpl();
    private SelectDao<StreetModel> street = new Streetimpl();

    public List<HouseTypeModel> alltype(){
        return type.all();
    }
    public List<TownModel> alltown(){
        return town.all();
    }
    public List<StreetModel> allstreet(){
        return street.all();
    }

}
